using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Skeletons
{
    public partial class FormChangeLength : Form
    {
        private int m_length;

        public FormChangeLength(int length)
        {
            InitializeComponent();
            m_length = length;
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
            Hide();
        }

        public DialogResult ShowDialog()
        {
            upDownLength.Text = m_length.ToString();
            return base.ShowDialog();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }

    }
}